package com.business.dynamic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 动态默认属性表 实体类
 * @author chenjiehong
 * @date 2019-11-29 15:15:38
 * @since 1.0
 */
@TableName(value = "dynamic_default_attribute")
public class DynamicDefaultAttribute{


    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 类型
	 */
	private Integer type; 

	/**
	 * 夫行业类别编码
	 */
	@TableField(value = "parent_category_code")
	private String parentCategoryCode; 

	/**
	 * 夫行业类别名称
	 */
	@TableField(value = "parent_category_name")
	private String parentCategoryName; 

	/**
	 * 子行业类别名称
	 */
	@TableField(value = "sub_category_name")
	private String subCategoryName; 

	/**
	 * 子行业类别编码
	 */
	@TableField(value = "sub_category_code")
	private String subCategoryCode; 

	/**
	 * 属性名称
	 */
	private String name; 

	/**
	 * 默认值
	 */
	@TableField(value = "default_value")
	private String defaultValue; 

	/**
	 * 单位
	 */
	private String unit; 

	/**
	 * 属性值类型
	 */
	@TableField(value = "value_type")
	private String valueType; 

	/**
	 * 是否必须的
	 */
	@TableField(value = "is_required")
	private Integer isRequired; 

	/**
	 * 正则表达式
	 */
	@TableField(value = "regular_expression")
	private String regularExpression; 

	/**
	 * 格式错误提示消息
	 */
	@TableField(value = "error_message")
	private String errorMessage; 

	/**
	 * 字典类型id 用在属性值类型为select时
	 */
	@TableField(value = "dictionary_type_id")
	private Integer dictionaryTypeId; 

	/**
	 * 字典值为范围
	 */
	@TableField(value = "is_scope")
	private Integer isScope; 

	/**
	 * 状态 1：正常 0:删除
	 */
	private Integer state; 
	// columns END


	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public Integer getType() {
		return type;
	}

    public void setType(Integer type) {
    	this.type = type;
    }
	public String getParentCategoryCode() {
		return parentCategoryCode;
	}

    public void setParentCategoryCode(String parentCategoryCode) {
    	this.parentCategoryCode = parentCategoryCode;
    }
	public String getParentCategoryName() {
		return parentCategoryName;
	}

    public void setParentCategoryName(String parentCategoryName) {
    	this.parentCategoryName = parentCategoryName;
    }
	public String getSubCategoryName() {
		return subCategoryName;
	}

    public void setSubCategoryName(String subCategoryName) {
    	this.subCategoryName = subCategoryName;
    }
	public String getSubCategoryCode() {
		return subCategoryCode;
	}

    public void setSubCategoryCode(String subCategoryCode) {
    	this.subCategoryCode = subCategoryCode;
    }
	public String getName() {
		return name;
	}

    public void setName(String name) {
    	this.name = name;
    }
	public String getDefaultValue() {
		return defaultValue;
	}

    public void setDefaultValue(String defaultValue) {
    	this.defaultValue = defaultValue;
    }
	public String getUnit() {
		return unit;
	}

    public void setUnit(String unit) {
    	this.unit = unit;
    }
	public String getValueType() {
		return valueType;
	}

    public void setValueType(String valueType) {
    	this.valueType = valueType;
    }
	public Integer getIsRequired() {
		return isRequired;
	}

    public void setIsRequired(Integer isRequired) {
    	this.isRequired = isRequired;
    }
	public String getRegularExpression() {
		return regularExpression;
	}

    public void setRegularExpression(String regularExpression) {
    	this.regularExpression = regularExpression;
    }
	public String getErrorMessage() {
		return errorMessage;
	}

    public void setErrorMessage(String errorMessage) {
    	this.errorMessage = errorMessage;
    }
	public Integer getDictionaryTypeId() {
		return dictionaryTypeId;
	}

    public void setDictionaryTypeId(Integer dictionaryTypeId) {
    	this.dictionaryTypeId = dictionaryTypeId;
    }
	public Integer getIsScope() {
		return isScope;
	}

    public void setIsScope(Integer isScope) {
    	this.isScope = isScope;
    }
	public Integer getState() {
		return state;
	}

    public void setState(Integer state) {
    	this.state = state;
    }
	
	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[type:" + getType() + "]";
		log += "[parentCategoryCode:" + getParentCategoryCode() + "]";
		log += "[parentCategoryName:" + getParentCategoryName() + "]";
		log += "[subCategoryName:" + getSubCategoryName() + "]";
		log += "[subCategoryCode:" + getSubCategoryCode() + "]";
		log += "[name:" + getName() + "]";
		log += "[defaultValue:" + getDefaultValue() + "]";
		log += "[unit:" + getUnit() + "]";
		log += "[valueType:" + getValueType() + "]";
		log += "[isRequired:" + getIsRequired() + "]";
		log += "[regularExpression:" + getRegularExpression() + "]";
		log += "[errorMessage:" + getErrorMessage() + "]";
		log += "[dictionaryTypeId:" + getDictionaryTypeId() + "]";
		log += "[isScope:" + getIsScope() + "]";
		log += "[state:" + getState() + "]";
		return log;
	}
}